package com.ruoyi.lxy.mapper;

import com.ruoyi.lxy.domain.TProject;
import com.ruoyi.lxy.domain.vo.TProjectVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 项目Mapper接口
 *
 * @author ruoyi
 * @date 2023-08-24
 */
public interface TProjectMapper extends BaseMapperPlus<TProjectMapper, TProject, TProjectVo> {

    /**
     * 根据旅行社ID获取项目选择框列表
     */
    List<Long> selectProjectListByAgencyId(Long id);

    List<Long> selectAvailableProjectListByAgencyId(Long id);

    @Select("SELECT year from t_project where id = #{id}")
    int getYearById(Long id);
}
